cmake_minimum_required(VERSION 3.18.2)
project(CoreBPE_cpp)
add_compile_options(-std=c++17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -g")
set(CMAKE_BUILD_TYPE "Release")
set(PYBIND11_CPP_STANDARD -std=c++17)

set(PYTHON_EXECUTABLE "/opt/conda/envs/python35-paddle120-env/bin/python")
set(pybind11_DIR "/home/aistudio/work/opt/share/cmake/pybind11")
set(Boost_INCLUDE_DIR "/home/aistudio/work/opt/include")
link_directories("/home/aistudio/work/opt/lib")


find_package(pybind11 REQUIRED)
find_package(Boost REQUIRED)

pybind11_add_module(CoreBPE_cpp corebpe.cpp main.cpp)
